package com.api.oa.services;

import com.api.oa.model.entity.OaAttend;
import com.api.oa.model.entity.OaOrg;
import com.api.oa.model.vo.OaAttendStatics;
import com.api.oa.model.vo.OaAttendVO;
import com.api.oa.model.vo.OaOrgTreeVO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IOaAttendService {


    /**
     * 打卡签到
     * @param oaOrg
     * @return
     */
    Integer add(OaAttend oaOrg);


    void remove(Long id);


    Integer update(OaAttend org);


    PageInfo<OaAttendVO> list(Integer pageIndex, Integer pageSize, String userName);


    OaAttend one(Long id);


    PageInfo<OaAttendStatics> listByWeek(String start,String end,String userName,Integer pageIndex,Integer pageSize);


    /**
     * 用户下的今日打卡
     * @param uid
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<OaAttendVO> listByUserToday(String uid,Integer pageIndex,Integer pageSize);


    /**
     * 查看考勤
     * @param uid
     * @param govCode
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<OaAttendStatics> listByToday(String uid,String govCode, Integer pageIndex, Integer pageSize);







}
